Page({
  data: {

  },
  regiser: function (options) {
    wx.navigateTo({
      url: '../register/register',
    })
  },
  formSubmit: function (e) {
    var value = e.detail.value;
    console.log('form发生了submit事件，携带数据为：', e.detail.value)
    wx.request({
      url: 'https://www.maintenance.ink/student/user/loginGet',
      method: 'GET',
      data: {
        // userAccount: 17628399052,
        // userPwd: 123456 
        userAccount: e.detail.value.userAccount,
        userPwd: e.detail.value.userPwd
      },
      success(res) {
        wx.showToast({

          title:"欢迎回来"+  res.data.message.userName + "!",

        })
  

      }
    })
  },
  formReset: function () {
    console.log('form发生了reset事件')
  }
})
